
all: lab

CC     = gcc
CFLAGS = -ggdb -Wall

HDR = func.h
OBJ = main.o funcc.c
NAM = lab

lab: $(OBJ)
	$(CC) $(OBJ) -o $(NAM)

.c.o: $< $(HDR)
	$(CC) -c $< -o $@ $(CFLAGS) 

clean:
	rm -f *.o lab ~* *~ arquivo.txt


